﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _6.IntegersSeperatedBySpaces
{
    class IntegersSeperatedBySpaces
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Input sequence of positive integer values separated by spaces: ");
            string[] sequenceOfIntegers = Console.ReadLine().Split(' ');
            int sum = 0;
            for (int i = 0; i < sequenceOfIntegers.Length; i++)
            {
                sum += int.Parse(sequenceOfIntegers[i]);
            }
            Console.WriteLine(sum);
        }
    }
}
